<template>
	<view class="article">
		<view class="circle-title">
			<view class="circle-title-l">数独动态</view>
			<view class="circle-title-r" @click="urlClick('/pages/news/news')">更多</view>
		</view>
		<view class="article-list">
			<view class="article-list-view" @click="urlClick('/pages/news/details?id='+item.id)" v-for="(item,index) in list">
				<image :src="item.img"></image>
				<view class="article-list-view-r">
					<view class="article-list-view-r-title">{{item.name}}</view>
					<view class="article-list-view-r-cennt">
						{{item.brief}}
					</view>
					<view class="article-list-view-r-date">{{item.issue_time}}</view>
				</view>
			</view>
			
			
		</view>
	</view>
</template>

<script>
	export default {
		
		data() {
			return {
				page :1 ,
				limit : 8 ,
				is_top :1,
				list :[],
			}
		},
		created() {
			this.getall();
		},
		methods: {
			getall(){
				let that  = this;
				that.$api.getArticlelist({'is_top': that.is_top,'page':that.page,'limit' : that.limit}).then(res=>{
					that.list = res.data.list;
					console.log(res);
				})
			},
			urlClick(e){
				uni.navigateTo({
					url:e
				})
			}
		}
	}
</script>

<style lang="less">
	@import url('../../common/css/article.less');
</style>